home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / int86.arc / INT86.TXT < prev    next >
Text File  |  1986-12-31  |  3KB  |  64 lines

  1.                                                 INT86.EXE
  2.  
  3.  
  4.                                                 CLASS: Lattice
  5.  
  6.  
  7. NAME
  8.     INT86           sets registers and generates interrupt from keyboard
  9.  
  10.  
  11. SYNOPSIS
  12.     int86 [<a,b,c,d}{l,h,x}{si,di} [=] <value>,<number>] ...
  13.  
  14. DESCRIPTION
  15.     Values can be start with 0x for hexidecimal, 0 for octal or
  16.     default to decimal. A number not equated to a register will be used
  17.     as the interrupt number.
  18.     This program permits the user to set the CPU registers and generate
  19.     DOS and BIOS interrupts directly from the keyboard. It is very usuful
  20.     when trying to see what values are returned in what registers. I have
  21.     found it to be an excellent teaching tool for learning about
  22.     interrupts and DOS service functions.
  23.  
  24.  
  25. EXAMPLE
  26.     The best way to learn about int86 is to try using it.
  27.     
  28.  
  29. int86 33 ah=42
  30.  
  31.     vec=33
  32. reg       h                      l                          x
  33.  a  0052, 42,0x2a          0000,  0,0x00          0025000,10752,0x2a00
  34.  b  0000,  0,0x00          0000,  0,0x00          0000000,    0,0x0000
  35.  c  0000,  0,0x00          0000,  0,0x00          0000000,    0,0x0000
  36.  d  0000,  0,0x00          0000,  0,0x00          0000000,    0,0x0000
  37.  si                                               0000000,    0,0x0000
  38.  di                                               0000000,    0,0x0000
  39. reg       h                      l                          x
  40.  a  0052, 42,0x2a          0003,  3,0x03          0025003,10755,0x2a03
  41.  b  0000,  0,0x00          0000,  0,0x00          0000000,    0,0x0000
  42.  c  0007,  7,0x07          0302,194,0xc2          0003702, 1986,0x07c2
  43.  d  0014, 12,0x0c          0037, 31,0x1f          0006037, 3103,0x0c1f
  44.  si                                               0000000,    0,0x0000
  45.  di                                               0000000,    0,0x0000
  46.  
  47.  
  48.  In this example the DOS service interrupt (decimal 33) was requested.
  49.  The DOS function call to function 42 (decimal) was placed in ah.
  50.  This request the date to be returned.
  51.  Upon return for the interrupt cx has the year (1986)
  52.  dh has the month (12) dl has the day (31) and al has a 3 for the day of the
  53.  week (Wednesday).
  54.  
  55.  
  56.     This routine may also look for the current setup of your machine,
  57.     show availible memory or set screen attributes. Be very careful when
  58.     setting registers. Un predicible things may happen if you make a
  59.     mistake. Check with any guide to DOS functions and BIOS calls for
  60.     what registers to load.
  61.     
  62.  
  63.  
  64.